<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Check Numbers</title>
<script type="text/javascript">
var locate = document.getElementsByTagName("input");
function verifNum()
{
	for (var i=0; i<locate.length; i++)
	{
		if (locate[i].type = "text")
			{
				var str = locate[i].value;
				for (var e=0; e<str.length; e++)
				{
					var ch = str.charAt(e);
					if (ch != "0" && ch != "1"&& ch != "2" && ch != "3" && ch != "4" && ch != "5" && ch != "6" && ch != "7" && ch != "8" && ch!= "9")
					{
						alert("Please enter a valid number!");	
						return false;					
					}
				}
				
	
			}
	}
	return true;
}
</script>
</head>
<body>
<table>
	<tr>
		<td>
		<form action="" id="valide" onsubmit="return verifNum()">
		<input type="text"/>
		<input type="text"/>
		<input type="text"/>		
		<input type="text"/>
		<input type="text"/>	
		<input type="text"/>
		<input type="text"/>
		<input type="text"/>				
		<input type="submit" value="Submit"/>
		</form>
		</td>
	</tr>
</table>
</body>
</html>